package sample.qiplat.plugin.file.menu;

import android.graphics.drawable.Drawable;
import android.widget.Toast;

import com.rapid.api.framework.project.file.BaseFileMenuAction;
import com.rapid.api.project.structure.PSObject;
import com.rapid.api.project.structure.TreeNode;

public class MyFileMenuAction extends BaseFileMenuAction {
    @Override
    public String getId() {
        return "test";
    }

    @Override
    public String getTitle() {
        return "测试";
    }

    @Override
    public Drawable getIcon() {
        return null;
    }

    @Override
    public void perform(TreeNode<PSObject> node) {
        Toast.makeText(getActivity(), "菜单被点击", Toast.LENGTH_SHORT).show();
    }
}
